class ArticleDetailVo {
  
  ArticleDetailData? data;

  ArticleDetailVo({this.data});

  ArticleDetailVo.fromJson(Map<String, dynamic> json) {
    data = json['data'] != null ? new ArticleDetailData.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    return data;
  }
}

class ArticleDetailData {
  int? id;
  int? type;
  int? categoryId;
  String? title;
  String? image;
  String? content;
  int? sort;
  int? isShow;
  int? vists;
  int? likes;
  String? createdAt;
  String? updatedAt;
  String? deletedAt;

  ArticleDetailData(
      {this.id,
      this.type,
      this.categoryId,
      this.title,
      this.image,
      this.content,
      this.sort,
      this.isShow,
      this.vists,
      this.likes,
      this.createdAt,
      this.updatedAt,
      this.deletedAt});

  ArticleDetailData.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    type = json['type'];
    categoryId = json['category_id'];
    title = json['title'];
    image = json['image'];
    content = json['content'];
    sort = json['sort'];
    isShow = json['is_show'];
    vists = json['vists'];
    likes = json['likes'];
    createdAt = json['created_at'];
    updatedAt = json['updated_at'];
    deletedAt = json['deleted_at'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['type'] = this.type;
    data['category_id'] = this.categoryId;
    data['title'] = this.title;
    data['image'] = this.image;
    data['content'] = this.content;
    data['sort'] = this.sort;
    data['is_show'] = this.isShow;
    data['vists'] = this.vists;
    data['likes'] = this.likes;
    data['created_at'] = this.createdAt;
    data['updated_at'] = this.updatedAt;
    data['deleted_at'] = this.deletedAt;
    return data;
  }
}
